﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

//数据库连接池
//https://www.nowcoder.com/questionTerminal/05f97d9b29944c018578d98d7f0ce56e
//int main() {
//    int n = 0;
//    string operate; //操作
//    while (cin >> n) {
//        int maxn = 0;
//        int count = 0;
//        while (n--)
//        {
//            cin >> operate >> operate;
//            if (operate == "connect") ++count;
//            else if (operate == "disconnect") --count;
//            maxn = maxn < count ? count : maxn;
//        }
//        cout << maxn << endl;
//    }
//}



//mkdir
//https://www.nowcoder.com/questionTerminal/433c0c6a1e604a4795291d9cd7a60c7a
//int main() {
//    int n = 0;
//    while (cin >> n) {
//        vector<string> vs(n);
//        vector<bool> vb(n, true);
//        for (auto& s : vs) cin >> s;
//        sort(vs.begin(), vs.end());
//
//        for (int i = 0; i < n - 1; ++i)
//            if (vs[i] == vs[i + 1] || vs[i + 1].find(vs[i]) != string::npos && vs[i + 1][vs[i].size()] == '/') vb[i] = false;
//        //如果相邻两串相等 或 i+1串包含i串 且 是i+1串从0-i串的长度处的一个字串 则i+1串包含i串
//
//        for (int i = 0; i < n; ++i)
//            if (vb[i]) cout << "mkdir -p " << vs[i] << endl;
//
//        cout << endl;
//    }
//}

